package com.hncic.tx.center.common.model;

import java.util.Date;

/**
 * @author smj E-mail: 463136320@qq.com
 * @created 2017年8月18日 上午10:30:23
 * @since jdk1.8 
 * @version 1.0
 * @describe 
 */

public class Account {

	private Integer id;// ` int(11) NOT NULL AUTO_INCREMENT,
	private String account;// ` varchar(50) NOT NULL DEFAULT '' COMMENT '登录账号',
	private String passWord;// ` varchar(50) NOT NULL COMMENT '密码',
	private Integer type;// ` int(2) NOT NULL COMMENT '0超级管理员 ，1省公司管理员 ，2中支推修管理岗，3门店员工',
	private String name;// ` varchar(50) NOT NULL DEFAULT '' COMMENT '人员姓名',
	private String branch;// ` varchar(20) NOT NULL COMMENT '中支代码',
	private String um;// ` varchar(20) DEFAULT '' COMMENT 'um号码',
	private String phone;// ` varchar(50) NOT NULL COMMENT '手机',
	private String email;// ` varchar(50) DEFAULT NULL COMMENT '邮箱',
	private Date lastLogin;// ` timestamp NULL DEFAULT NULL COMMENT '最后登录的时间',
	private Integer state;// ` int(2) DEFAULT NULL COMMENT '账号状态，0正常，1禁用',
	private String remark; // 账号说明
	private Integer loginCount;// ` int(11) DEFAULT '0' COMMENT '登录次数',
	private Date createTime;// ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
	private Date updateTime;// ` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
								// COMMENT '修改时间',
	private Boolean del;// ` tinyint(2) NOT NULL DEFAULT '0' COMMENT '1:已删，0:正常，Java:boolean',

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBranch() {
		return branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public String getUm() {
		return um;
	}

	public void setUm(String um) {
		this.um = um;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getLoginCount() {
		return loginCount;
	}

	public void setLoginCount(Integer loginCount) {
		this.loginCount = loginCount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDel() {
		return del;
	}

	public void setDel(Boolean del) {
		this.del = del;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static class State {
		public final static Integer normal = 1;
		public final static Integer disable = 0;
	}

}
